package com.example.demo.design.creational.abstractfactory;

/**
 * 具体工厂：韶关农场类
 *
 * @author luowj12
 * @since 2021/5/7 10:57
 */
public class SGfarm implements Farm {
    @Override
    public Animal newAnimal() {
        System.out.println("新牛出生！");
        return new Cattle();
    }
    @Override
    public Plant newPlant() {
        System.out.println("蔬菜长成！");
        return new Vegetables();
    }
}
